

sort dyad year 


***Table.1: Summary values of major variables
summarize settle icowsal lowdem cie settle allied majpow lcapratio



***Table.2: Tabulation of Territorial Salience and Settled Borders
tabulate icowsal settle


***Table.3: Logit analysis for MID Onset

eststo: logit newmid l.settle midyrs sqmidyrs cubmidyrs if contig == 1

eststo:logit newmid  l.settle l.icowsal midyrs sqmidyrs cubmidyrs if contig == 1, robust 

eststo:logit newmid  l.settle l.icowsal l.lowdem midyrs sqmidyrs cubmidyrs if contig == 1, robust 

eststo:logit newmid  l.settle l.icowsal l.lowdem l.cie  midyrs sqmidyrs cubmidyrs if contig == 1, robust 

eststo:logit newmid l.settle l.icowsal l.lowdem l.cie l.allied l.majpow l.lcapratio midyrs sqmidyrs cubmidyrs if contig == 1, robust  

esttab using mid.tex, se pr2 aic bic label title()

eststo clear 


***Table.4: Logit analysis for Fatal MIDs


eststo: logit fatal l.settle  fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1

eststo:logit fatal l.settle l.icowsal fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1, robust 

eststo:logit fatal l.settle l.icowsal l.lowdem  fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1, robust 

eststo:logit fatal  l.settle l.icowsal l.lowdem l.cie fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1, robust 

eststo:logit fatal l.settle l.icowsal l.lowdem l.cie l.settle l.allied l.majpow l.lcapratio fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1, robust  

esttab using fat.tex, se pr2 aic bic label title()

eststo clear


***Figure.1
logit fatal icowsal lowdem cie settle allied majpow lcapratio midyrs sqmidyrs cubmidyrs if contig == 1, robust 
margins, at(icowsal = (0(2)12) settle = (0 1)) atmeans
marginsplot

***Figure.2
logit fatal icowsal lowdem cie settle allied majpow lcapratio midyrs sqmidyrs cubmidyrs if contig == 1, robust 
margins, at(icowsal = (0(2)12) settle = (0 1)) atmeans
marginsplot



****Table.5. Firthlogit analysis

firthlogit fatal settle fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1

firthlogit fatal settle icowsal fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1 

eststo:logit fatal settle icowsal lowdem  fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1 

eststo:logit fatal  settle icowsal lowdem cie fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1

eststo:logit fatal settle icowsal lowdem cie settle allied majpow lcapratio fatsqpeyrs fatpeyrs wapeaceyrs if contig == 1 

esttab using fir.tex, se pr2 aic bic label title()

eststo clear


*** Appendix 
describe settle icowsal lowdem cie settle allied majpow lcapratio

correlate settle icowsal lowdem cie settle allied majpow lcapratio

pwcorr settle icowsal lowdem cie settle allied majpow lcapratio, star(.01) bonferroni


